/***
 * 样式类名 拼接
 *
 * @param {Array|string} className
 */
export const classHelper = (className) => {
  if (!className){
    return '';
  }
  let classNames = '';
  function checkClass( arg ) {
      if (typeof arg === 'string'||!arg){
        if (typeof arg === 'string'){
          classNames+=' '+arg;
        }else {
          classNames+=' ';
        }
      }else {
        arg.map((e,index)=>{
          checkClass(e);
        })
      }

  }
  checkClass(className,classNames);
  return classNames;
};
